<!doctype html>
<html>
<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<meta name="format-detection" content="telephone=no">
	<title>config2</title>
	<link rel="stylesheet" href="../plugin/seedsui/seedsui.min.css">
</head>

<body>
	<section id="page_config2" class="active">
		<header>
			<div class="titlebar">
		        <a href="javascript:back()" class="left">
		        	<button class="height32 radius4 grayscale outline">取消</button>
		        </a>
		        <h1 class="text-center">评价</h1>
		        <a class="right">
		        	<button class="height32 radius4 warn">发布</button>
		        </a>
		    </div>
		</header>
		<article>
			<div class="margin8">
				<span>点击星星评分：</span>
				<span>
		            <i class="star icon icon-fav-fill size16 active"></i>
		            <i class="star icon icon-fav-fill size16 active"></i>
		            <i class="star icon icon-fav-fill size16 active-half"></i>
		            <i class="star icon icon-fav-fill size16"></i>
		            <i class="star icon icon-fav-fill size16"></i>
		        </span>
	        </div>
	        <div class="input-box radius4">
	        	<textarea data-fontcounter="description1" placeholder="请输入评论信息" data-rule="required maxlength:10"></textarea>
	        </div>
	        <p data-fontcounter-for="description1" class="margin8 text-right"></p>
		</article>
	</section>

	<script src="../plugin/jquery/jquery.min.js"></script>
	<script src="../plugin/seedsui/seedsui.min.js"></script>
	<script src="../plugin/exmobi/exmobi.js"></script>
	<script>
		//数字计数器
		function listenerFontcount(){
			var fc=new FontCounter({
				"onInput":function(s){
					//console.log("输入中");
				},
				"onMoreThanCount":function(s){
					//console.log("超过数字限制时");
					s.fieldCounter.innerHTML=Math.round(s.maxlength-s.currentlength);
					s.fieldCounter.classList.add("color-tip");
				},
				"onNotMoreThanCout":function(s){
					//console.log("没有超过数字限制时");
					s.fieldCounter.innerHTML="";
					s.fieldCounter.classList.remove("color-tip");
				}
			});
		}
		listenerFontcount();
		//定义exmobi返回
		function back(){history.go(-1)}
	</script>
</body>
</html>